<template>
  <a-result status="404" title="404" sub-title="对不起, 您访问的页面暂时不存在!">
    <template #extra>
      <a-button type="primary" @click="goHome">
        回到首页
      </a-button>
    </template>
  </a-result>
</template>
<script>
  import { mapState, mapMutations } from 'vuex'
  export default {
    data () {
      return {};
    },
    methods: {
      goHome () {
        this.$router.push('/index/mend');
        this.handleChangeRouter('/index/mend');
      },
      // vuex中改变路由的方法;
      ...mapMutations(['handleChangeRouter']),
    }
  }
</script>
